package com.bdq.interaction.infrastructure.persistence.mysql.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.bdq.interaction.infrastructure.persistence.mysql.pojo.InteractionComment;
import com.baomidou.mybatisplus.extension.service.IService;

/**
* @author malei
* @description 针对表【interaction_comment(交互评论表)】的数据库操作Service
* @createDate 2024-05-14 15:04:13
*/
public interface InteractionCommentService extends IService<InteractionComment> {

    /**
     * 分页查询父评论
     *
     * @param contentId
     * @param pageNo
     * @param pageSize
     * @return
     */
    IPage<InteractionComment> pageParentComment(Long contentId, Integer pageNo, Integer pageSize);

    /**
     * 分页查询子评论
     *
     * @param parentCommentId
     * @param pageNo
     * @param pageSize
     * @return
     */
    IPage<InteractionComment> pageChildComment(Long parentCommentId, Integer pageNo, Integer pageSize);
}
